% Draw the plot for LCG and MT
function [e] = dataplot(data, str, unit)
  title(str);
  data = data*unit;
  meanOfData = mean(data);
  x = 1:size(data,1);
  xm=1:0.1:size(data,1);
  xlabel('No.');
  y = 2.6:0.01:3.5;
  ylabel('The Delay time(s)');

  hold on;

  plot(x,data,'b-');
  plot(xm,meanOfData,'r-');
  legend('Each batch mean value','Mean of Batch values');

  hold off;
  e = 0;
end
